<?php
if($_COOKIE['loginStatus']&&$_COOKIE['loginpassword']){
	$data["loginStatus"] = $_COOKIE['loginStatus'];
	$data["loginpassword"] = $_COOKIE['loginpassword'];
	echo json_encode($data);
}else{
	session_start();
	$data["loginStatus"] = $_SESSION['loginStatus'];
	$data["loginpassword"] = $_SESSION['loginpassword'];
	echo json_encode($data);
}
	
?>